package com.dhcc.bpm.modules.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.dhcc.bpm.modules.api.entity.Product;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @ClassName productListVo
 * @Description TODO
 * @Author sjm
 * @Date 2020/2/27 0027 18:49
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Data
public class productListVo extends Product {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "主键")
    private Long id;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String productName;
    /**
     * 产品ID
     */
    private String productId;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    private String productCode;
    /**
     * 产品版本
     */
    @ApiModelProperty(value = "产品版本")
    private String productVersion;
    /**
     * 权限等级
     */
    @ApiModelProperty(value = "权限等级")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private Integer privilegeLevelProd;
    /**
     * 是否收费
     */
    @ApiModelProperty(value = "是否收费")
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private Integer isCostProd;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String note;

    /**
     * 所属系统名称
     */
    @ApiModelProperty(value = "名称")
    private String ownSystem;

    /**
     * 权限等级描述
     */
    private String privilegeLevelProdDesc;
    /**
     * 是否收费描述
     */
    private String isCostProdDesc;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeProd;

    /**
     * 创建人
     */
    private String createUserName;

    /**
     * 创建部门
     */
    private String createDeptName;

    private String apiIds;

    private List<ApiListVo> apiList;
    /**
     * 联系人=创建人
     */
    private String link;
    private String sysName;
}
